import { EBaseAttribute, ENPC, EPlayerType, ESkill, EWuxing } from "./Enum";
import { EPassiveSkill } from "./SkillConfig";

// 初始化玩家配置
export const PlayerConfig = {
  [EPlayerType.Shaolin]: {
    id: 1,
    level: 1,
    name: "少林弟子",
    desc: "七十二技压天下，天下武功出少林！",
    line1: "佛亦有怒目，金刚伏魔时。将军，且看小僧超度这些蒙古鞑虏！",
    line2:"武学之道，在于止戈。但面对豺狼，唯有金刚手段。",
    avatar:"pic/player/Shaolin/avatar",
    wuxing: EWuxing.Jin,
    wuxingColor: "#FFD700",
    // 玩家基础属性
    strength: 9,    // 主属性（拳脚刚猛）
    agility: 3,      // 身法一般
    intelligence: 5, // 偏重外功
    vitality: 10,    // 体格强健
    innerPower: 0,  // 基础内力
    // 玩家基础属性增长基数:力量、身法、悟性、体质、内力
    attributeGrowth: [2, 1, 0.8, 2,0.1],

    primaryAttribute: EBaseAttribute.Strength,

    // 玩家中级属性
    speed: 10,
    attackSpeed: 0.4,
    attackRange: 550,
    criticalChance: 0.01,
    criticalDamage: 1.2, // 基础暴伤150%

    ap: 10,
    dp: 15,
    hp: 150,
    accuracy: 0.85, // 命中率90%
    dodge: 0.1,
    wuxingEnhance: 0.1,
    skillEnhance: 0,
    skills: [ESkill.ShaolinSkill1, ESkill.ShaolinSkill2, ESkill.ShaolinSkill3],
    // skills: [ESkill.ShaolinSkill1]

    // 固定属性
    ragePerAttack: 5, //  每次攻击获得怒气值
    rageMax: 100, // 最大怒气值

    penetratePercent : 0, // 穿透
    penetrateCount : 0, // 穿透数量
    // 被动武学
    defaultPassiveSkill: EPassiveSkill.ShaolinPassive1,
    passiveSkills: [EPassiveSkill.ShaolinPassive1, EPassiveSkill.ShaolinPassive2, EPassiveSkill.ShaolinPassive3],
  },
  [EPlayerType.Tangmen]: {
    id: 2,
    level: 1,
    name: "唐门弟子",
    desc: "毒蒺藜破千军阵，孔雀翎落万点星",
    line1: "暗器无声，取命无痕。这片城墙，将是他们的葬身之地。",
    line2:"世人皆畏我唐门之毒，却不知最毒的，是贪得无厌的人心。",
    avatar:"pic/player/Tangmen/avatar",
    wuxing: EWuxing.Mu,
    wuxingColor: "#228B22",
    // 玩家基础属性
    strength: 6,     // 力量较低
    agility: 10,     // 主属性（暗器迅捷）
    intelligence: 8, // 机关术需悟性
    vitality: 7,     // 身板脆弱
    innerPower: 0,   // 内力需求一般
    attributeGrowth: [1, 2, 0.8, 0.8, 0.1], // 玩家基础属性增长基数:力量、身法、悟性、内力、体质

    primaryAttribute: EBaseAttribute.Agility,
    // 玩家中级属性
    speed: 10,
    attackRange: 600,
    attackSpeed: 0.4,
    criticalChance: 0.03,
    criticalDamage: 1.5, // 基础暴伤150%
    ap: 15,
    dp: 5,
    hp: 100,
    accuracy: 0.9, // 命中率80%
    dodge: 0.05,
    wuxingEnhance: 0.1,
    skillEnhance: 0,
    skills: [ESkill.TangmenSkill1, ESkill.TangmenSkill2, ESkill.TangmenSkill3],
    //skills: [ESkill.TangmenSkill1]

    // 固定属性
    ragePerAttack: 5, //  每次攻击获得怒气值
    rageMax: 100, // 最大怒气值
    penetratePercent : 0, // 穿透
    penetrateCount : 0, // 穿透数量

    // 被动武学
    defaultPassiveSkill: EPassiveSkill.TangmenPassive1,
    passiveSkills: [EPassiveSkill.TangmenPassive1, EPassiveSkill.TangmenPassive2, EPassiveSkill.TangmenPassive3],
  },
  [EPlayerType.Emei]: {
    id: 3,
    level: 1,
    name: "峨眉弟子",
    desc: "倚天剑寒映月色，玉女素心破长空",
    line1: "剑舞如虹，气贯长空。峨眉弟子，愿与襄阳共存亡！",
    line2:"这襄阳城下，每多守一刻，便多一分黎明到来的希望。",
    avatar:"pic/player/Emei/avatar",

    wuxing: EWuxing.Shui,
    wuxingColor: "#1E90FF",
    // 玩家基础属性
    strength: 5,     // 力量最低
    agility: 8,     // 身法中等
    intelligence: 10,// 主属性（心法悟性）
    vitality: 6,     // 体质一般
    innerPower: 0,  // 内力深厚
    attributeGrowth: [1, 1.5, 2, 0.5,0.1], // 玩家基础属性增长基数:力量、身法、悟性、内力、体质
    primaryAttribute: EBaseAttribute.Intelligence,
    // 玩家中级属性
    speed: 10,
    attackSpeed: 0.4,
    attackRange: 575,
    criticalChance: 0.01,
    criticalDamage: 1.3, // 基础暴伤180%
    ap: 12,
    dp: 10,
    hp: 100,
    accuracy: 0.9, // 命中率90%
    dodge: 0.1,
    wuxingEnhance: 0.1,
    skillEnhance: 0,
    skills: [ESkill.EmeiSkill1, ESkill.EmeiSkill2, ESkill.EmeiSkill3],

    // 固定属性
    ragePerAttack: 5, //  每次攻击获得怒气值
    rageMax: 100, // 最大怒气值
    penetratePercent : 0, // 穿透
    penetrateCount : 0, // 穿透数量

    // 被动武学
    defaultPassiveSkill: EPassiveSkill.EmeiPassive1,
    passiveSkills: [EPassiveSkill.EmeiPassive1, EPassiveSkill.EmeiPassive2, EPassiveSkill.EmeiPassive3],
  },
  [EPlayerType.Gaibang]: {
    id: 4,
    level: 1,
    name: "丐帮弟子",
    desc: "降龙掌出风云变，打狗棒挑日月明",
    line1: "叫花子别的没有，就是有骨气和打狗棒！兄弟们，揍他娘的！！",
    line2:"天下兴亡，匹夫有责。更何况我们这些受尽天下恩惠的叫花子？",
    avatar:"pic/player/Gaibang/avatar",
    wuxing:   EWuxing.Huo,
    wuxingColor: "#FF4500",
    // 玩家基础属性
    strength: 10,    // 主属性（刚猛掌法）
    agility: 8,     // 副属性（打狗棒法灵活）
    intelligence: 5, // 悟性低
    vitality: 9,    // 抗打能力强
    innerPower: 0,   // 内力粗糙
    attributeGrowth: [2, 1.5, 1, 1, 0.1], // 玩家基础属性增长基数:力量、身法、悟性、体质、内力
    primaryAttribute: EBaseAttribute.Strength,
    // 玩家中级属性
    speed: 10,
    attackSpeed: 0.4,
    attackRange: 520,
    criticalChance: 0.03,
    criticalDamage: 1.5, // 基础暴伤160%
    ap: 15,
    dp: 10,
    hp: 120,
    accuracy: 0.85, // 命中率95%
    dodge: 0.1,
    wuxingEnhance: 0.1,
    skillEnhance: 0,
    skills: [ESkill.GaibangSkill1, ESkill.GaibangSkill2, ESkill.GaibangSkill3],
    //skills: [ESkill.GaibangSkill4],
    // 固定属性
    ragePerAttack: 5, //  每次攻击获得怒气值
    rageMax: 100, // 最大怒气值
    penetratePercent : 0, // 穿透
    penetrateCount : 0, // 穿透数量

    // 被动武学
    defaultPassiveSkill: EPassiveSkill.GaibangPassive1,
    passiveSkills: [EPassiveSkill.GaibangPassive1, EPassiveSkill.GaibangPassive2, EPassiveSkill.GaibangPassive3],
  },
  [EPlayerType.Wudang]: {
    id: 5,
    level: 1,
    name: "武当弟子",
    desc: "太极图转阴阳分，真武剑出天地清",
    line1: "太极生两仪，四两拨千斤。任他千军万马，我自岿然不动。",
    line2:"道法自然，然则侵略如火，破敌如雷。此亦为天道。",
    avatar:"pic/player/Wudang/avatar",
    wuxing: EWuxing.Tu,
    wuxingColor: "#8B4513",
    // 玩家基础属性
    strength: 8,    // 力量均衡
    agility: 10,     // 主属性（剑法轻灵）
    intelligence: 8,// 太极需悟性
    innerPower: 0,  // 内力悠长
    vitality: 5,    // 体质均衡
    attributeGrowth: [1.5, 2, 1, 1, 0.1], // 玩家基础属性增长基数:力量、身法、悟性、内力、体质
    primaryAttribute: EBaseAttribute.Agility,
    // 玩家中级属性
    speed: 10,
    attackSpeed: 0.4,
    attackRange: 550,
    criticalChance: 0.02,
    criticalDamage: 1.2, // 基础暴伤170%
    ap: 15,
    dp: 10,
    hp: 100,
    accuracy: 0.85, // 命中率90%
    dodge: 0.1,
    wuxingEnhance: 0.1,
    skillEnhance: 0,
    skills: [ESkill.WudangSkill1, ESkill.WudangSkill2, ESkill.WudangSkill3],

    // 固定属性
    ragePerAttack: 5, //  每次攻击获得怒气值
    rageMax: 100, // 最大怒气值
    penetratePercent : 0, // 穿透
    penetrateCount : 0, // 穿透数量

    // 被动武学
    defaultPassiveSkill: EPassiveSkill.WudangPassive1,
    passiveSkills: [EPassiveSkill.WudangPassive1, EPassiveSkill.WudangPassive2, EPassiveSkill.WudangPassive3],
  }
}

export const NPCConfig = {
  [ENPC.Cangku]:{
    name: "王管事",
    line1: "这襄阳城啊，守得一天是一天，多亏了有您这样的大侠在。"
  },
  [ENPC.Shop]:{
    name:"钱老板",
    line1:"朝廷军备，江湖奇物，西域珍宝，想要什么尽管开口！"
  },
  [ENPC.Forge]:{
    name:"石师傅",
    line1:"当年岳爷爷说‘直捣黄龙’，靠的也是咱们匠人打出的好兵器！"
  }


}